package com.heitian.ssm.service;

import com.heitian.ssm.model.BathEntity;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: mishuai
 * Date: 2018-04-24
 * Time: 16:41
 * Des:
 */
public interface BathService {
    /**
     * 根据时间查询
     * @return
     */
    List<BathEntity> selectByCreatTime();

    /**
     * 根据澡位ID查询
     * @param bath
     * @return
     */
    BathEntity selectByBathId(String bath);

    /**
     * 查询月总量
     * @param month
     * @return
     */
    int selectByTotalByBarMonth(String month);

    /**
     * 分性别查询月总量
     * @param
     * @return
     */
    int selectByTotalBySexMonth(String month ,String bathRoom);

    /**
     *折线图查询周总量
     * @param weekpre
     * @return
     */
    int selectByTotalByLineWeek(int weekpre);

    /**
     * 选定澡位插入数据库
     * @param bathEntity
     * @return
     */
    int insertSelective(BathEntity bathEntity);
}
